package com.ruoyi.erp.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.erp.mapper.IERPMapper;
import com.ruoyi.erp.service.IERPService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DS(value="slaveprod")
public class ERPServiceImpl implements IERPService {
    @Autowired
    private IERPMapper ierpMapper;

    @Override
    public List<String> getSyncProject() {
        return ierpMapper.getSyncProject();
    }

    @Override
    public List<String> getManHourProject() {
        return ierpMapper.getManHourProject();
    }

    @Override
    public String getProjectIdByCode(String projectCode) {
        return ierpMapper.getProjectIdByCode(projectCode);
    }

    @Override
    public String getProjectCodeById(String projectId) {
        return ierpMapper.getProjectCodeById(projectId);
    }

    @Override
    public Integer sendMessage(String submitId, String userId, String title) {
        return ierpMapper.sendMessage(submitId,userId,title);
    }
}
